<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
   <script>
       var x;
       var y;
       var z;
       for(x = 0; x <= 20;x ++ ){
           for(y = 0;y <= 33;y ++){
               z = 100-(x + y);
               var m = (x * 5) + (y * 3) + (z /3);
               if((z % 3) == 0 && m == 100 ){
                   document.write("公鸡 "+ x +"只 母鸡"+ y +"只 小鸡"+ z +"只 <br>")
               }
           }
       }
   </script>
</body>
</html>